һȨ
 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

ڶע㲥
 <receiver android:name="com.rfid.stkd.tool.BootCompletedReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.PACKAGE_ADDED" />
                <action android:name="android.intent.action.PACKAGE_REMOVED" />

                <data android:scheme="package" />
                <!-- ע⣡ ҪӣղBroadCast -->
            </intent-filter>
        </receiver>

ʵֹ㲥
package com.rfid.stkd.tool;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.rfid.stkd.view.activity.MainActivity;

public class BootCompletedReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) {
			Intent newIntent = new Intent(context, MainActivity.class);
			newIntent.setAction("android.intent.action.MAIN");
			newIntent.addCategory("android.intent.category.LAUNCHER");
			newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			context.startActivity(newIntent);
		}

	}
}

Ĳǹ˾豸
 android:installLocation="internalOnly" manifest